package api.sea;

import conf.Url;
import util.HttpClientUtils;
import util.ResponseData;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;

public class PutStorageApi {
    private static final String put_storage_url = Url.Base_Url + "consumer/lgsWtd4/process";
    public ResponseData put_storage(String isStorage, String systemNumber, String sailingDate, String etaDate, int state) throws IOException, URISyntaxException {
        Map<String, Object> data = new HashMap<>();
            data.put("isStorage", isStorage);
            data.put("systemNumber", systemNumber);
            data.put("sailingDate", sailingDate);
            data.put("etaDate", etaDate);
            data.put("state", state);
        return HttpClientUtils.post_json(put_storage_url, data);
    }
}
